var i=1;

function addDep(){
	var nome=document.usuario.nomedep0.value;
	var tipo=document.getElementById("tipodep").options[document.getElementById("tipodep").selectedIndex].text;
		
	var part1="</br><label>Nome:</label><input type='text' name='nomedep";
	var part2="' size='50' value='";
	var part3="'/><label>Tipo: </label><select name='tipodep";
	var part4="' ><option value=\"";
	var part5="\"</option>";
	var part6="</select>";

	document.getElementById("duplicaDep").innerHTML += part1+i+part2+nome+part3+i+part4+tipo+part5+tipo+part6;
i++;
}